package xinxin.com.BuilderPattern;

import xinxin.com.BuilderPattern.Person.PersonBuilder;
import xinxin.com.BuilderPattern.Person.PersonDetail.PersonFatBuilder;
import xinxin.com.BuilderPattern.Person.PersonDirector;
import xinxin.com.BuilderPattern.Person.PersonDetail.PersonThinBuilder;

import java.awt.*;

/**
 * @author ：史鑫鑫
 * @date ：Created in 2019/3/25 16:18
 */
public class BuilderPattern {
    public static void main(String[] args) {
        PersonBuilder personBuilder = new PersonFatBuilder(Color.BLUE);
        PersonDirector director = new PersonDirector(personBuilder);
        director.CreatePerson();
    }
}
